package com.blazemina.config;

/**
 * socket配置选项
 * 
 * @author JackChu
 * @version 1.0.0 2012-2-6 下午10:03:09
 */
public class SocketOption {
	private int socketReceiveBuffer;
	private int socketSendBuffer;
	private boolean keepAlive;
	private boolean tcpNoDelay;
	private IdleTime idleTime;

	/**
	 * @return the keepAlive
	 */
	public boolean isKeepAlive() {
		return keepAlive;
	}

	/**
	 * @param keepAlive the keepAlive to set
	 */
	public void setKeepAlive(boolean keepAlive) {
		this.keepAlive = keepAlive;
	}


	/**
	 * @return the socketReceiveBuffer
	 */
	public int getSocketReceiveBuffer() {
		return socketReceiveBuffer;
	}

	/**
	 * @param socketReceiveBuffer
	 *            the socketReceiveBuffer to set
	 */
	public void setSocketReceiveBuffer(int socketReceiveBuffer) {
		this.socketReceiveBuffer = socketReceiveBuffer;
	}

	/**
	 * @return the socketSendBuffer
	 */
	public int getSocketSendBuffer() {
		return socketSendBuffer;
	}

	/**
	 * @param socketSendBuffer
	 *            the socketSendBuffer to set
	 */
	public void setSocketSendBuffer(int socketSendBuffer) {
		this.socketSendBuffer = socketSendBuffer;
	}


	/**
	 * @return the tcpNoDelay
	 */
	public boolean isTcpNoDelay() {
		return tcpNoDelay;
	}

	/**
	 * @param tcpNoDelay
	 *            the tcpNoDelay to set
	 */
	public void setTcpNoDelay(boolean tcpNoDelay) {
		this.tcpNoDelay = tcpNoDelay;
	}

	/**
	 * @return the idleTime
	 */
	public IdleTime getIdleTime() {
		return idleTime;
	}

	/**
	 * @param idleTime
	 *            the idleTime to set
	 */
	public void setIdleTime(IdleTime idleTime) {
		this.idleTime = idleTime;
	}

	
}